package com.chalk.vo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class NewShopOrderDetailsVo {
    /**
     * 订单详情表id
     */
    @ApiModelProperty(name = "id", value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    @ApiModelProperty(name = "orderId", value = "订单号")
    @TableField("order_id")
    private String orderId;

    /**
     * 商品id
     */
    @ApiModelProperty(name = "commodityId", value = "商品id")
    @TableField("commodity_id")
    private String commodityId;

    /**
     * 商品名称
     */
    @ApiModelProperty(name = "commodityName", value = "商品名称")
    @TableField("commodity_name")
    private String commodityName;

    /**
     * 商品数量
     */
    @ApiModelProperty(name = "commodityNum", value = "商品数量")
    @TableField("commodity_num")
    private String commodityNum;

    /**
     * 商品价格
     */
    @ApiModelProperty(name = "commodityPrice", value = "商品价格")
    @TableField("commodity_price")
    private BigDecimal commodityPrice;

    /**
     * 总价
     */
    @ApiModelProperty(name = "commodityTotal", value = "总价")
    @TableField("commodity_total")
    private BigDecimal commodityTotal;

    private static final long serialVersionUID = 1L;
}
